﻿using System;
using System.Collections.Generic;
using System.Text;

public class ConvertHelper
{
    public static T ConverToAny<T>(object str)
    {
        if (str == null || Convert.IsDBNull(str))
        {
            return default(T);
        }
        else
        {
            return (T)Convert.ChangeType(str, typeof(T));
        }
    }
}

